﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cineman.ViewModels
{
    public class MovieGroup : IEnumerable<MovieData>
    {
        public MovieGroup()
        {
            Items = new ObservableCollection<MovieData>();
        }

        public ObservableCollection<MovieData> Items { get; set; }
        public string Title { get; set; }
        
        public IEnumerator<MovieData> GetEnumerator()
        {
            return this.Items.GetEnumerator();
        }

        IEnumerator IEnumerable.GetEnumerator()
        {
            return GetEnumerator();
        }

    }
}
